package com.fth.learn.chapter08.human;



/**
 * 学生类
 * YiMi
 *
 * @author YiMi
 * @version 1.0
 * @date 2023/7/24 10:17
 */

public class Student extends Person{

    //方法
    public void score(int... score){
        int num = 0;
        for (int i = 0; i < score.length; i++) {
            num = num + score[i];
        }
        num = num/score.length;

        System.out.println("她的平均成绩是："+num);
    }

}
